System And Method For Crawl Policy Management Utilizing IP Address and IP Address Range

ABSTRACT

The present invention relates to a method for configuring a policy management protocol for a web crawler, the method further comprising the steps of determining a web space that is to be crawled by a web crawler, wherein the web space is comprised of an IP address and/or a range of IP addresses, and determining additional hostnames that are associated with the IP address and/range of IP addresses. The method further comprises the steps of configuring the web crawler to crawl the IP address and/range of IP addresses, and determine additional hostnames that are associated with the IP address or range of IP addresses, and performing a web crawling function upon the determined additional hostnames by the web crawler.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.11/625,110 filed Jan. 19, 2007, the contents of which are incorporatedby reference herein in their entirety.

TRADEMARKS

IBM® is a registered trademark of International Business MachinesCorporation, Armonk, N.Y., U.S.A. Other names used herein may beregistered trademarks, trademarks or product names of InternationalBusiness Machines Corporation or other companies.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates to methodologies for distributed web crawlingand, more particularly, to a web crawling system that uses IP addressand IP address range to assist in the efficient downloading of websitesthat belong to an IP address and/or IP address range.

2. Description of Background

A crawler or a robot, is defined as a software component thatcontinuously visits websites on the Internet, or an Intranet, anddownloads web pages from the websites and stores them in a localrepository for further analysis and data mining. There are many types ofcrawlers, wherein each category of crawler can be configured to carryout specific functions. For example, there are focused or topicalcrawlers, this category of crawler limit their crawling to sitesbelonging to specific taxonomies, or geological regions. The crawlersare configured with such limitations in order to ensure that the sitesbeing crawled are relevant to an overall goal of the system. Focus andtopical crawling is typically implemented by specifying a web space thatis to be crawled. A web space is determined according to utilizationneed, and comprises a set of allow and forbid rules, the rules beingused to control the set of sites and directories that a focus crawler isallowed to visit. Configuring the web space for a focus crawler is verycritical, as these rules are used to ensure that the focus crawlercrawls all the pages that have been determined to be of interest.

The continual growth of the sites on the Internet leads to an increasingamount of challenges when defining the web space for a focus crawler.Therefore, there exists a need for a methodology to improve theefficiency in determining a web space, and further in implementingpolicies that are directed to configuring focus crawlers to crawl thedefined web spaces.

SUMMARY OF THE INVENTION

The shortcomings of the prior art are overcome and additional advantagesare provided through the provision of a method for configuring a policymanagement protocol for a web crawler, the method further comprising thesteps of determining a web space that is to be crawled by a web crawler,wherein the web space is comprised of at least one IP address and atleast one range of IP addresses, storing at least one IP address and atleast one range of IP addresses within a URL frontier, and determiningadditional hostnames that are associated with the at least one IPaddress by performing a reverse DNS lookup of the at least one IPaddress.

The method further comprises the steps of configuring the web crawler tocrawl at least one IP address or at least one range of IP addresses, anddetermine the additional hostnames that are associated with at least oneIP address or at least one range of IP addresses, and performing a webcrawling function upon the determined at least one IP address, at leastone range of IP addresses, and the determined additional hostnames bythe web crawler.

Computer program products corresponding to the above-summarized methodsare also described and claimed herein.

Additional features and advantages are realized through the techniquesof the present invention. Other embodiments and aspects of the inventionare described in detail herein and are considered a part of the claimedinvention. For a better understanding of the invention with advantagesand features, refer to the description and to the drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

The subject matter that is regarded as the invention is particularlypointed out and distinctly claimed in the claims at the conclusion ofthe specification. The foregoing and other objects, features, andadvantages of the invention are apparent from the following detaileddescription taken in conjunction with the accompanying drawings inwhich:

FIG. 1 illustrates a flow diagram of aspects one example of a webcrawler system as implemented within an embodiment of the presentinvention.

FIG. 2 illustrates a flow diagram detailing aspects of a URLverification process that can be implemented within embodiments of thepresent invention.

The detailed description explains the preferred embodiments of theinvention, together with advantages and features, by way of example withreference to the drawings.

DETAILED DESCRIPTION OF THE INVENTION

One or more exemplary embodiments of the invention are described belowin detail. The disclosed embodiments are intended to be illustrativeonly since numerous modifications and variations therein will beapparent to those of ordinary skill in the art.

A focus crawler is a crawler or robot that does a restrictive crawl ofwebsites that are of interest to a crawler operator. A focus crawler canbe configured to crawl a predetermined list of hostnames, directories,and IP addresses. Additionally, the focus crawler can be configured tonot crawl a predetermined list of hostnames, directories, and IPaddresses. This configuration list comprising the specified hostnames,directories, and IP addresses is called a web space.

Once initiated, a focus crawler makes an attempt to crawl all of thewebsite pages that belongs to a web space. Typically, as configuredwithin a focus crawler, a web space could comprise the followingconfiguration instructions:

-   -   Allow domain www.ibm.com    -   Allow address 169.222.1.2    -   Allow range 169.222.0.0/15    -   Allow prefix http://www.news.com/business    -   Forbid prefix http://www.news.com/archive    -   Forbid address 168.1.2.3    -   Forbid range 167.212.0.0/14

Typically, focus crawlers are configured with the list of sites anddirectories they are eligible to crawl. This particular aspect restrictsa focus crawler to host based crawling, since IP addresses areconsidered string-based hosts. If a focus crawler could be configured tocrawl by IP address, or by IP address range, then it would be possibleto implement enhanced crawler configurations (e.g., crawling types ofsites as defined by the Regional Internet Registries (RIRs)). Moreover,new sites that are added that belong to an IP address, or a range of IPaddresses, will automatically be picked up by the focus crawler that isconfigured to crawl the IP address or range of IP addresses.

Some RIRs, such as the Asia-Pacific Network Information Centre (APNIC)reserves particular IP address ranges for particular types of sites.

Examples of APNIC resource ranges include:

-   -   218.100.0.0/16 is used to make /24 assignments to Internet        Exchange Points (IXPs).    -   203.119.0.0/16 is used to make /24 assignments to Critical        Infrastructure.    -   169.208.0.0/15 is used to make /21 allocations for experimental        purposes.    -   169.210.0.0/14 169.214.0.0/13 169.222.0.0/15 are used for        conferences, exhibitions and temporary assignments.    -   196.192.0.0/13 is used to make /22 allocations to future members        of the African Regional Registry (AfriNIC).

Referencing the above IP address resource ranges, if we were to crawlwebsites for conferences and exhibitions in the Asia-Pacific regions,then we would need to configure a focus crawler to crawl all of thehosts in the IP range 169.222.0.0/15. It must be noted that thisnotation of an IP address range is configured in accordance with theClassless Inter-Domain Routing (CIDR). Therefore, the IP address range169.222.0.0/15 means that first 15 bits out of 32 bits IPv4 address areused to identify the unique network, thus leaving the remaining bits tobe configured to identify a specific host. Another instance whencrawling by IP address or IP address range is helpful is in the eventthat an organization is assigned a range of addresses by a RIR. In thisinstance, crawling pages that are related to the organization would beparticularly helpful if the IP addresses/range could be specified forthe organization, and a focus crawler configured to crawl all of thesites that are operated by the organization.

Another instance in which it would be beneficial to utilize IP addressand/or IP address range based crawling is in the event that focusedcrawling of websites belonging to a geographic location, or region isnecessitated. When a discovery focus crawler encounters a new IP addressit sends the IP address to a geoIP service, the geoIP service thereafterdetermining the location of the IP address. Thus, the focus crawlercould be configured to crawl the new IP address as determined by thegeoIP service.

There is yet another aspect of employing IP addresses to crawling, whichis related to the restrictions one can impose on the crawling process.The way this works is that a focus crawler user specifies a forbid rulein the web space, and configures the focus crawler not to crawl thisrestricted web space. Typically forbid rules comprise domain-names,directory names, and sometimes IP addresses.

However, on the pages in the Internet, IP addresses and domain names aresometimes used interchangeably in the hyperlinks. This creates a seriousproblem for focus crawlers when trying to apply such a hyperlink to theweb space rules. For example, in the event that a user specifies thatall sites from the domain name www.ibm.com (the registered domain namefor IBM®) are to be blocked, but the hyperlink in question is of thetype http://129.42.42.212/products/index.html (where 129.42.42.212actually is the IP address for www.ibm.com), then the matching of theweb space rules with this hyperlink will fail. This is in spite of thefact that the user desires to restrict any crawling of www.ibm.com.

By corollary, there could also be a situation where a user desires toblock access to a set of IP addresses, but did not configure theblocking of the sites hosted on those IP addresses. This event wouldagain result in a situation where the focus crawler would end upcrawling undesired content. One can make similar cases for the allowablecrawl sites in a web space, where a focus crawler would inadvertentlynot crawl a site it was configured to crawl, simply because thehyperlink in question contained the IP address, while the rulescontained the site-name, or vice-versa.

Within aspects of the present invention, a focus crawler can beconfigured to crawl a web space based upon an IP address, or an IPaddress range. Within embodiments of the present invention, a focuscrawler can be configured to crawl a web space based upon in accordancewith the following configuration instructions:

-   -   Allow address 169.222.1.2    -   Allow range 169.222.0.0/15        The rule “Allow the IP address 169.222.1.2,” is defined as        meaning that all of the hosts that map to IP address 169.222.1.2        will be crawled. Further, the rule “Allow range 169.222.0.0/15”        is defined as meaning that all of the hosts with IP addresses        matching the first 15 bits of the IP address range, which        happens to be the network part of the address.

Within aspects of the present invention a further technique can beemployed to discover new hostnames that belong to an IP address andrange of IP addresses. For each allowed IP address, and for each IPaddress in the range of allowed IP addresses, an HTTP GET request istransmitted to the IP address to in order to retrieve the defaultwebpage. From the default webpage all of the discovered URLs that arecomprised within the webpage are parsed. Thereafter, a DNS lookupoperation is performed upon the parsed URLs in order to determine if theURLs fulfill the criteria of the prescribed web space. All of the URLsthat are determined to fulfill the requirements for the web space areadded to the URL frontier.

Turning now to the drawings in greater detail, it will be seen that inFIG. 1 there is a flowchart diagram illustrating aspects of anembodiment of the present invention. As seen in FIG. 1, a URL frontier105 is established for the web focus crawler 110. The URL frontier 105is implemented to configure the web focus crawler 110 with the web spaceinformation detailing web space that the web focus crawler 110 isallowed to crawl, and is restricted from crawling. A DNS lookup table115 is implemented to assist the web focus crawler 110 in determiningthe host that belongs to an IP address, or IP address range. Withinaspects of the present invention some of the hosts belonging to an IPaddress can be determined by doing a reverse DNS lookup. As part of thereverse DNS lookup function, aliases for these hosts could also befound, and added to the list of hosts for the IP address or IP addressrange. These hostnames could be added to the URL frontier 105, and thusconfigured within the web focus crawler 110 by an external or aninternal utility.

At step 120, the web focus crawler 110 initiates a crawl operation.After a page has been crawled by the web focus crawler 110 the URL ischecked against the web space to see if there is a match in the URLfrontier 105. During a web space match first the URL is checked againstthe directory and host rules, if the URL does not pass then the IPaddress of the website is checked against the address and range rules tosee if the page should be stored in the repository (step 125) foranalysis, or it should be discarded. Further, at step 130, any linksdiscovered at the website are further analyzed. A determination is madeat step 135 as to if the discovered link belongs to the web space. Inthe event that the link is determined to belong to the web space issaved and added to the URL frontier 105 at step 145. In the event thatthe link is determined not to belong to the web space, it is discarded(step 140).

FIG. 2 shows the determination operation of step 135 in greater detail.We see in FIG. 2 that upon the discovery of a new URL link adetermination is made as to whether the host identification segment ofthe discovered link is an IP address (step 205). If a determination ismade that the host identification segment of the discovered link is anIP address, then at step 215 a further determination is made toascertain if the IP address belongs to the web space in accordance withthe prescribed rules of the web space. If the link is determined tofulfill the IP rule criteria for the web space, then the link is addedto the URL frontier 105. If the link is determined not to fulfill therule criteria for the web space, then it is discarded (step 140).

In the event at step 205 that the host identification segment for adiscovered link is not part of an IP address, then at step 210 adetermination is made as to whether the discovered link fulfills thecriteria for host/prefix rules that have been established for the webspace. If the discovered link fulfills the web space rule criteria, thenit is added to the URL frontier 105. In the event that the link does notfulfill the rule criteria then at step 220 a DNS lookup operation isperformed upon the discovered link to ascertain the an IP address, or IPaddress range to which the link belongs. Thereafter, the link issubmitted to the determination operations of step 215.

Crawling by IP address and IP address range is beneficial in solving avariety of crawl policy problems. Some IP addresses and IP addressranges are earmarked for particular type of sites, or for certaingeographical location. Specifying sites to be crawled by IP address orIP address range, hence directs the focus crawlers to crawl those siteswithout actually building a list of the relevant sites. Within furtheraspects of the present invention, a web focus crawler is configured tocrawl the IP address of a specified Intranet site.

In summary, web crawling by IP address and IP address range makes iteasier for an administrator to manage a web space as new websites areadded to the Internet and/or an Intranet. If a user is interested inparticular sites that always belong to an IP address, or IP addressrange, the IP addresses or IP address range will automatically bediscovered and crawled by the focus crawler if the focus crawler isconfigured with the appropriate IP based rules.

The capabilities of the present invention can be implemented insoftware, firmware, hardware or some combination thereof.

As one example, one or more aspects of the present invention can beincluded in an article of manufacture (e.g., one or more computerprogram products) having, for instance, computer usable media. The mediahas embodied therein, for instance, computer readable program code meansfor providing and facilitating the capabilities of the presentinvention. The article of manufacture can be included as a part of acomputer system or sold separately.

The flow diagram depicted herein is just an example. There may be manyvariations to this diagram or the steps (or operations) describedtherein without departing from the spirit of the invention. Forinstance, the steps may be performed in a differing order, or steps maybe added, deleted or modified. All of these variations are considered apart of the claimed invention.

While the preferred embodiment to the invention has been described, itwill be understood that those skilled in the art, both now and in thefuture, may make various improvements and enhancements which fall withinthe scope of the claims which follow. These claims should be construedto maintain the proper protection for the invention first described.

1. A method for configuring a policy management protocol for a webcrawler, the method further comprising the steps of: determining a webspace that is to be crawled by a web crawler, wherein the web space iscomprised of at least one IP address and at least one range of IPaddresses; storing the at least one IP address and the at least onerange of IP addresses within a URL frontier; determining additionalhostnames that are associated with the at least one IP address byperforming a reverse DNS lookup of the at least one IP address;configuring the web crawler to crawl the at least one IP address or atleast one range of IP addresses, and determine additional hostnames thatare associated with the at least one IP address or at least one range ofIP addresses; and performing a web crawling function upon the determinedthe at least one IP address, the at least one range of IP addresses, andthe determined additional hostnames by the web crawler.
 2. The method ofclaim 1, wherein the step of determining the web space further comprisesthe step of determining at least one IP address and one range of IPaddresses that the web crawler is restricted to crawling.
 3. The methodof claim 1, wherein the IP address and range of IP addresses areassociated with geographic locations.
 4. A computer program product thatincludes a computer readable medium useable by a processor, the mediumhaving stored thereon a sequence of instructions which, when executed bythe processor, causes the processor to implement a policy managementprotocol for a web crawler, wherein the computer program productexecutes the steps of: determining a web space that is to be crawled bya web crawler, wherein the web space is comprised of at least one IPaddress and at least one range of IP addresses; storing the at least oneIP address and the at least one range of IP addresses within a URLfrontier; determining additional hostnames that are associated with theat least one IP address or range of IP address by performing a reverseDNS lookup of the at least one IP address; configuring the web crawlerto crawl the at least one IP address, the at least one range of IPaddresses, and determined additional hostnames that are associated withthe at least one IP address; and performing a web crawling function uponthe determined the at least one IP address, the at least one range of IPaddresses, and the determined additional hostnames by the web crawler.